package com.gopay.common.domain.cps.vo;

import java.math.BigDecimal;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.gopay.common.domain.BaseEntity;

public class CheckOrderResult extends BaseEntity{

    /**
     * 
     */
    private static final long serialVersionUID = -1185969167153744524L;

    /**
     * 对单是否成功
     */
    private boolean success;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 订单金额
     */
    private BigDecimal amount;

    /**
     * 入账信息
     */
    private InAccInfo accInfo;

    /**
     * 错误码
     */
    private String errCode;

    /**
     * 错误描述
     */
    private String errMsg;
    
    /**
     * 银行是否失败
     */
    private boolean bankFailure;
    
    /**
     * 通信超时
     */
    private boolean communicateError;
    /**
     * 01618 视频会员卡 卡密
     * add by zhoupeng 20170622
     */
    private String cardPws;
    
    private boolean needRefund;
    
    /**
     *  工行银企直连银行返回码
     */
    private String bankRetCode;
    
    public CheckOrderResult() {

    }

    public CheckOrderResult(boolean success) {
        this.success = success;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public InAccInfo getAccInfo() {
        return accInfo;
    }

    public void setAccInfo(InAccInfo accInfo) {
        this.accInfo = accInfo;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    
    public boolean isBankFailure(){
    	return bankFailure;
    }
    
    public void setBankFailure(boolean bankFailure){
    	this.bankFailure = bankFailure;
    }

	public boolean isCommunicateError() {
		return communicateError;
	}

	public void setCommunicateError(boolean communicateError) {
		this.communicateError = communicateError;
	}

	public String getCardPws() {
		return cardPws;
	}

	public void setCardPws(String cardPws) {
		this.cardPws = cardPws;
	}
    
    public boolean isNeedRefund() {
		return needRefund;
	}

	public void setNeedRefund(boolean needRefund) {
		this.needRefund = needRefund;
	}
	
	public String getBankRetCode() {
		return bankRetCode;
	}

	public void setBankRetCode(String bankRetCode) {
		this.bankRetCode = bankRetCode;
	}

	@Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
    }
}
